/**
 * Created by abiu on 2016-03-03.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var projectS = new Schema({
    project_name: {type: String, required: true,unique:true},
    project_create_by:{type: String, required: true},//user -- _id
    project_description: {type: String, required: false},
    project_document: {type: String, required: false},
    project_create_at: {type: Date, required: false},
    project_update_at: {type: Date, required: false, default: Date.now()},
    project_note:{type:String}
})


module.exports = mongoose.model('project', projectS);